package com.maigao.api.interceptors.identify;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author awei
 * @description:
 * @date 2022/5/18 11:07 下午
 */
@Configuration
public class IdentifyConfiguration {
    @ConditionalOnMissingBean
    @Bean
    public IdentifyInterceptor identifyInterceptor() {
        return new IdentifyInterceptor();
    }

    @ConditionalOnMissingBean
    @Bean
    public Validator validator() {
        return new Validator();
    }
}
